// Copyright (c) 2025, the Dart project authors.  Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.

import 'package:expect/expect.dart';
import 'package:js/js.dart';
import 'package:reload_test/reload_test_utils.dart';

final e = Expando<int>();

@JS()
external void eval(String s);

@JS()
external Object get singleton;

Future<void> main() async {
  var o = singleton;
  Expect.equals(null, e[o]);
}

/** DIFF **/
/*
 external Object get singleton;
 
 Future<void> main() async {
-  eval('''
-    if (!self.singleton) {
-      self.singleton = {};
-    }
-  ''');
   var o = singleton;
   Expect.equals(null, e[o]);
-  e[o] = 1;
-
-  await hotRestart();
 }
*/
